package com.retail.core.entity.enums;

/**
 * 删除标志
 * @author administrator
 */
public enum DelFlagEnum {
    /**
     * 删除
     */
    YES(1, "是"),

    /**
     * 未删除
     */
    NO(0, "否");

    private Integer value;

    private String label;

    DelFlagEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public Integer getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public static String getStatusValues (Integer value) {
        DelFlagEnum[] enums =  DelFlagEnum.values();
        for (DelFlagEnum e1: enums) {
            if (e1.getValue().equals(value)) {
                return e1.getLabel();
            }
        }
        return "";
    }
}
